package com.sxpi.zixun.service.questionscategory;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxpi.zixun.bo.QuestionsCategoryBo;
import com.sxpi.zixun.pojo.QuestionsCategory;
import com.sxpi.zixun.service.BaseService;
import com.sxpi.zixun.vo.QuestionsCategoryVo;

import java.util.List;

/**
 * @Author: 董伟豪
 * @Date: 2022/9/17 10:51
 */
public interface IQuestionsCategoryService extends IService<QuestionsCategory>, BaseService {

    /**
     * 查询文章分类列表信息
     * @return
     */
    List<QuestionsCategoryBo> findQuestionsCategoryList();

    /**
     * 查询文章分类列表信息并分页
     * @param questionscategoryVo
     * @return
     */
    IPage<QuestionsCategoryBo> findQuestionsCategoryPage(QuestionsCategoryVo questionscategoryVo);

    /**
     * 根据文章分类id查询明细信息
     * @param id
     * @return
     */
    QuestionsCategoryBo getQuestionsCategoryById(Long id);

    /**
     * 保存和修改文章分类
     * @param questionscategory
     * @return
     */
    QuestionsCategoryBo saveUpdateQuestionsCategory(QuestionsCategory questionscategory);

    /**
     * 根据文章分类id删除文章分类
     * @param id @return
     */
    int deleteQuestionsCategoryById(Long id);

    /**
     * 根据文章分类ids批量删除文章分类
     * @param batchIds
     * @return
     */
    boolean delBatchQuestionsCategory(String batchIds);
}
